<?php
	$html->addCrumb('Admin','/admin');
	$html->addCrumb('User anlegen','/admin/users/add');

	echo  $this->element('tasks',array('target'=>'/admin/users'));
?>
<div class="title">User anlegen</div>

<?php echo $this->element('flashMessage') ?>
   
<?php  

	    echo $this->Form->create('User', array( 'class'=> 'form',
	    										'action' => 'add')
								);

	    										
	    echo $this->Form->input('first_name', array(
										    		'label' => 'Vorname: ', 
													)
								);
														                
	    echo $this->Form->input('family_name', array(
										    		'label' => 'Nachname: ', 
													)
								);
														             
	    echo $this->Form->input('phone_number', array(
											    		'label' => 'Telefon: ', 
													)
								);
															            	 
	    echo $this->Form->input('email', array(
									    		'label' => 'Email: ', 
												)
								);
													             
	    echo '<br>';
	    
	    echo $this->Form->input('username', array(
									    		'label' => 'Username: ', 
												)
								);
													             
	    echo $this->Form->input('password', array(
	    										'label' => 'Passwort:',
											)
								);
	             
	    echo $this->Form->input('state_id', array(
									    		'label'=>'Status:',
												)
								);
	
	    echo $this->Form->input('free_text', array(
									    		'label' => 'Notiz: ',

												'type' => 'textarea',
												)
								);

	echo '<div class="form_div_buttons">';
	echo '<a href="'.URL_PREFIX.'/admin/users/"><button>Abbrechen</button></a>';
	echo '<input type="submit" name="Anlegen" value="anlegen">';
	echo '</div>';
	
	echo $this->Form->end();


 ?>   
 
